package com.grape.demo20220803.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @Author pan_jin
 * @Description: $
 * @Date: 2022/8/9 9:15
 * @Version: 1.0.0
 * @Slogan: 梦想还是要有的万一实现了呢
 */
@Configuration
@ConfigurationProperties("storage.local")
public class StorageConfiguration {
    private String rootDir;
    private Integer maxSize;
    private boolean allowEmpty;
    private List<String> allowType;

    public String getRootDir() {
        return rootDir;
    }

    public void setRootDir(String rootDir) {
        this.rootDir = rootDir;
    }

    public Integer getMaxSize() {
        return maxSize;
    }

    public void setMaxSize(Integer maxSize) {
        this.maxSize = maxSize;
    }

    public boolean isAllowEmpty() {
        return allowEmpty;
    }

    public void setAllowEmpty(boolean allowEmpty) {
        this.allowEmpty = allowEmpty;
    }

    public List<String> getAllowType() {
        return allowType;
    }

    public void setAllowType(List<String> allowType) {
        this.allowType = allowType;
    }
}
